using TheBlog.NhibernateModel.Entities;

namespace TheBlog.NhibernateModel.Mappings
{
    public class UserAffectMap : SubEntityMap<UserAffect>
    {
        public UserAffectMap()
        {
            References(x => x.AffectedUser, "AffectedUserId").ForeignKey("FK_User_UserAffect_AffectedUserId");
            References(x => x.AffectingUser, "AffectingUserId").ForeignKey("FK_User_UserAffect_AffectingUserId");
        }
    }
}